翻訳と辞書
Words near each other
・ Prehistoric beast
・ Prehistoric bird
・ Prehistoric Britain
・ Prehistoric Cyprus
・ Prehistoric demography
・ Prehistoric Digital Poetry
・ Prehistoric Egypt
・ Prehistoric Europe
・ Prehistoric fiction
・ Prehistoric Georgia
・ Prehistoric grave goods in the Philippines
・ Prehistoric Hayseeds
・ Prehistoric hillfort Strazevica
・ Prehistoric Hong Kong
・ Prehistoric Iberia
Prefix header
・ Prefix order
・ Prefix sum
・ Prefix WhoIs
・ Prefixes in Hebrew
・ PrefixNE
・ Preflagellin peptidase
・ Preflexes
・ Preflight (EP)
・ Preflight Planning Dispatch Checklist
・ Preflyte
・ Prefoldin
・ Prefoldin subunit 6
・ Prefontaine
・ Prefontaine (disambiguation)


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Prefix header : ウィキペディア英語版
Prefix header
In computer programming, a prefix header is a feature found in some C or C++ compilers used to ensure that a certain snippet of code is inserted at the beginning of every file.
== Overview ==

In the C and C++ programming languages, a header file is a file whose text is included in another source file by the compiler, usually by the use of compiler directives at the beginning of the source file. A prefix header differs from a normal header file in that it is ''automatically'' included at the beginning of every source file by the compiler, without the use of any compiler directives.
Prefix headers are usually pre-compiled in order to reduce compilation times. Use of prefix headers outside of this purpose can make your code more difficult to maintain & less re-usable.〔(4 Ways Precompiled Headers Cripple Your Code )〕
Prefix headers can also be used for cross-platform support. On
*NIX
systems, it is common to have a config.h header file generated at build time (via something like autoconf) that describes the capabilities of the system. However, when using certain build systems such as Visual Studio or Xcode, this config.h may be unavailable. One technique to solve this is to have HAVE_CONFIG_H be a pre-defined macro in the build-system that generates a config.h so that code knows whether it needs to #include config.h (& is safe for use by build systems that do not have it). An alternative, would be for the build system to add config.h as a prefix header instead of defining HAVE_CONFIG_H. Of course the downside is that this header will be added to every compilation unit, not just the ones that include it explicitly.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Prefix header」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.